﻿#ifndef __TESTPLUGINACTIVATOR_H__
#define __TESTPLUGINACTIVATOR_H__

// 插件必须添加宏 -- 1
// #ifndef CPF_OBJECT_API
// #define CPF_OBJECT_API
// #endif



#include "CPF/CPFActivator.h"


class TestPluginService;

class TestPluginActivator : public CPFActivator
{
public:
    TestPluginActivator();
    virtual ~TestPluginActivator();

    virtual bool start(void) final;
    virtual bool stop(void) final;
    virtual std::string name(void) final;
    virtual std::string version(void) final;
public:
    // Activator:必须添加的宏 -- 2
    CPF_INSTANCE(TestPluginActivator);
protected:
private:
    TestPluginService* m_pService;
};

// Activator函数外:必须添加的宏 -- 3
CPF_OBJECT_ADDRESS(TestPluginActivator);

#endif // __TESTPLUGINACTIVATOR_H__
